﻿using S.RBAC.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace S.RBAC.Infrastructure.Interface
{
    public interface IRoleRepository : IBaseRepository<Role>
    {
        Task<int> AddRole(Role role);

        Task<List<Role>> GetRoleInfo(Expression<Func<Role, bool>> expre);

        Task<List<Role>> GetAllRole();

        Task<Role> GetRoleById(int id);

        Task<int> UpdRole(Role role);
    }
}
